package com.lu.proxydemo

import com.github.mkopylec.charon.configuration.MappingProperties
import com.github.mkopylec.charon.core.http.ForwardedRequestInterceptor
import com.github.mkopylec.charon.core.http.RequestData
import org.springframework.stereotype.Component

@Component
class CustomForwardedRequestInterceptor :ForwardedRequestInterceptor{
    override fun intercept(data: RequestData?, mapping: MappingProperties?) {
        println("请求拦截器")
        println("mapping:${mapping?.destinations}")
        println("request data:,${data?.uri},${data?.bodyAsString}")

    }

}